package com.cc.infrastructure.db;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Date;
import java.sql.Timestamp;
import java.sql.Time;


@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "user_all_type")
public class UserAllTypeDb {


  /**
   * id
   **/
  @Id
  @Column(name = "id")
  private String id;

  /**
   * 姓名
   **/
  @Basic
  @Column(name = "name")
  private String name;

  /**
   * 年龄
   **/
  @Basic
  @Column(name = "age")
  private Integer age;

  /**
   * 性别
   **/
  @Basic
  @Column(name = "sex")
  private Boolean sex;

  /**
   * 身高
   **/
  @Basic
  @Column(name = "height")
  private Double height;

  /**
   * 体重
   **/
  @Basic
  @Column(name = "weight")
  private Float weight;

  /**
   * 资金
   **/
  @Basic
  @Column(name = "money")
  private BigDecimal money;

  /**
   * 大数据
   **/
  @Basic
  @Column(name = "dashuju")
  private BigInteger dashuju;

  /**
   * 图片二进制
   **/
  @Basic
  @Column(name = "picture")
  private byte[] picture;

  /**
   * 生日
   **/
  @Basic
  @Column(name = "birth")
  private Date birth;

  /**
   * 生日时间戳
   **/
  @Basic
  @Column(name = "birth_stamp")
  private Timestamp birthStamp;

  /**
   * 生日time
   **/
  @Basic
  @Column(name = "birth_time")
  private Time birthTime;

  /**
   * json
   **/
  @Basic
  @Column(name = "json")
  private String json;

  /**
   * 人物描述
   **/
  @Basic
  @Column(name = "description")
  private String description;

  /**
   * 人物描述_text
   **/
  @Basic
  @Column(name = "description_text")
  private String descriptionText;

  /**
   * 人物描述_tiny
   **/
  @Basic
  @Column(name = "description_tiny")
  private String descriptionTiny;

  /**
   *
   **/
  @Basic
  @Column(name = "other_test_by_null_string")
  private String otherTestByNullString;

}